package com.itheima.common;

import lombok.Data;

import java.io.Serializable;

/**
 * 封装返回结果
 */
@Data
public class Result implements Serializable{
    private boolean success;//执行结果，true为执行成功 false为执行失败{"success":true}
    private Integer id;

    public Result() {
    }

    public Result(boolean success, Integer id) {
        this.success = success;
        this.id = id;
    }
}
